import React from "react";
import ReactDom from "react-dom";
import App from "./App.js";
import {AppContainer} from "react-hot-loader";

function render(Component){
    return ReactDom.render(
    (<AppContainer>
            <Component></Component>
    </AppContainer>),
    document.getElementById("root")
    )
}

render(App);
//热更新
console.log(process.env)
if(module.hot){
    module.hot.accept('./App.js',()=>{
        render(App);
    })
}